import {createApp, h, type DefineComponent, getCurrentInstance} from 'vue'
export default function(comp:any, props:Object):Element{
    const vm = createApp({
        setup() {
            return h(comp, {props, ref: 'root'})
        }
    })
    const div = document.createElement('div');
    vm.mount(div);
    const instance = getCurrentInstance();
    console.log(vm)

    return instance?.refs?.vm as Element;
}